<?php
/************************
* Simple News Engine 0.2.3
* author: Ragnaar <ragnaar@km.ru>
* home: http://code.google.com/p/sne-news
* date: 08.06.2011
*********************/
defined( '_VALID_SNE' ) or die( 'Direct Access to this location is not allowed.' );

$dbcnx = mysql_connect($dblocation,$dbuser,$dbpassword);
if(!$dbcnx) {
    echo "can't connect";
    exit();
}

if(!mysql_select_db($dbname,$dbcnx)){
    echo "can't select db";
    exit();
}
mysql_query('SET NAMES utf8');
?>
